import { ref } from 'vue'
// @ts-ignore
// interface User {
//   name: string;
//   password: string;
// }

export const loginForm = ref({
  name: '',
  password: ''
})

export const rules = ref({
  // 校验规则
  name: [
    {
      required: true,
      message: '请输入用户名',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入密码',
      trigger: ''
    },
    {
      min: 6,
      max: 15,
      message: '密码长度必须在6到15个字符',
      trigger: 'blur'
    }
  ]
})
